package com.itheima03.day13;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

/**
 * @author 刘全
 * @date 2021/8/4
 */
public class Test3 {
    public static void main(String[] args) throws IOException {
        FileWriter fr = new FileWriter("myideaTest\\src\\com\\itheima03\\day13\\1.txt");
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入用户名:");
        String username = sc.nextLine();
        System.out.println("请输入密码:");
        String password = sc.nextLine();
        fr.write(username);
        fr.write(System.lineSeparator());
        fr.write(password);
        fr.write(System.lineSeparator());
        fr.write("苏晋丕,我是你爹!");
        fr.close();
    }
}
